package Client;

public class Launcher {
	public static void main(String[] args) {
		Client client = null;
		LineReader input = null;
		if (args.length != 2) {
			System.out.println("Connecting to localhost:9090");
			client = new Client("localhost", 9090);
		} else {
			System.out.println("Connecting to " + args[0] + ":"
					+ Integer.parseInt(args[1]));
			client = new Client(args[0], Integer.parseInt(args[1]));
		}
		new Thread( client ).start();
		input = new LineReader( client );
		input.run();
	}
}
